package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.ProcurementBean;
import com.project.bean.ShopBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

@Mapper
public interface IProcurementMapper extends BaseMapper<ProcurementBean> {
    /**
     * 添加采购明细，同时修改库存数量和最新采购价
     * @param procurementId 采购ID
     * @param buyList 采购车集合
     */
    public void addProcurementInfo(@Param("procurementId") Integer procurementId,
                                   @Param("buyList") Collection<ShopBean> buyList);
}
